package com.zh.media.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zh.media.domain.dto.PageArticleDto;
import com.zh.web.domain.media.vo.ArticleVo;
import com.zh.web.domain.media.entity.Article;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zh
 * @since 2024-10-02
 */

public interface ArticleMapper extends BaseMapper<Article> {

    List<ArticleVo> page(IPage<ArticleVo> page, PageArticleDto pageArticleDto);

    List<ArticleVo> listArticleVo(List<Long> ids);

    List<ArticleVo> listArticleAfterTime(LocalDateTime time);
}
